package 用友集团牛客笔试;

import java.util.LinkedList;

/**
 * @author zc
 * @version 1.0
 * @date 2021/9/14 10:02
 */


public class BlockingQueue {
    public static void main(String[] args) {
        //MessageQueue messageQueue = new MessageQueue(2);
    }
}

class MessageQueue{

    //使用有序的链表来充当队列
    private LinkedList<Message> list = new LinkedList<>();

}

final class Message {

    private int id;
    private Object value;

    public Message(int id,Object value){
        this.id = id;
        this.value = value;
    }
}
